package com.kgc.scd.service;/**
 * <p>
 *
 * </p>
 *
 * @author shelina
 * @since 2022/11/17
 */


import com.kgc.scd.bean.Order;
import com.kgc.scd.util.PageSupport;
import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created On : 2022/11/17.
 * <p>
 * Author : Administrator
 * <p>
 * Description: WebOrderService
 */
@FeignClient(value = "wyyxmall-jgq-server")
public interface WebOrderService {
    /**
     * @author : Administrator
     * @date   : 2022/11/18
     * @param  : [orderNo]
     * @return : com.kgc.scd.util.RequestResult<java.lang.String>
     * @description : 快递下单发货
     */
    @PostMapping("/orderExpress")
    RequestResult<String> orderExpress(@RequestParam("orderNo") String orderNo);

    /**
     * @author : Administrator
     * @date   : 2022/11/17
     * @param  : [LogisticCode, orderNo]
     * @return : com.kgc.scd.util.RequestResult<java.util.Map<java.lang.String,java.lang.Object>>
     * @description : 快递查询
     */
    @PostMapping("/selectExpress")
    RequestResult<Map<String,Object>> selectExpress(@RequestParam("LogisticCode") String LogisticCode,@RequestParam("orderNo") String orderNo);

    /**
     * @author : Administrator
     * @date   : 2022/11/15
     * @param  : [comment, pageNo, pageSize]
     * @return : com.kgc.scd.util.RequestResult<?>
     * @description : 查询订单列表
     */
    @GetMapping("/getOrderList")
    PageSupport<Order> getOrderList(@RequestParam("orderGoodsId") String orderGoodsId, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);


    /**
     * @author : Administrator
     * @date   : 2022/11/18
     * @param  : [id]
     * @return : com.kgc.scd.util.RequestResult<?>
     * @description : 删除订单
     */
    @GetMapping("/delOrderList")
    RequestResult<?> delOrderList(@RequestParam("id") String id);

    /**
     * @author : Administrator
     * @date   : 2022/11/18
     * @param  : [id]
     * @return : com.kgc.scd.util.RequestResult<?>
     * @description : 签收订单
     */
    @GetMapping("/signOrderList")
    RequestResult<?> signOrderList(@RequestParam("id") String id);
}
